import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';

export const columns: BasicColumn[] = [
    {
    title: 'SCID',
    dataIndex: 'scid'
   },
   {
    title: '监控中心名称',
    dataIndex: 'scnname'
   },
   {
    title: '监控中心资产编号',
    dataIndex: 'scassetid'
   },
   {
    title: '监控中心登录用户名',
    dataIndex: 'name'
   },
   {
    title: '监控中心密码',
    dataIndex: 'password'
   },
   {
    title: '生产厂商',
    dataIndex: 'productor'
   },
   {
    title: '版本',
    dataIndex: 'version'
   },
   {
    title: '开始运行时间',
    dataIndex: 'beginruntime'
   },
   {
    title: '监控中心地址',
    dataIndex: 'schost'
   },
   {
    title: '监控中心端口',
    dataIndex: 'scport'
   },
];

export const searchFormSchema: FormSchema[] = [
 {
    label: 'SCID',
    field: 'scid',
    component: 'Input'
  },
 {
    label: '监控中心名称',
    field: 'scnname',
    component: 'Input'
  },
];

export const formSchema: FormSchema[] = [
  // TODO 主键隐藏字段，目前写死为ID
  {label: '', field: 'id', component: 'Input', show: false},
  {
    label: 'SCID',
    field: 'scid',
    component: 'Input',
  },
  {
    label: '监控中心名称',
    field: 'scnname',
    component: 'Input',
  },
  {
    label: '监控中心资产编号',
    field: 'scassetid',
    component: 'Input',
  },
  {
    label: '监控中心登录用户名',
    field: 'name',
    component: 'Input',
  },
  {
    label: '监控中心密码',
    field: 'password',
    component: 'Input',
  },
  {
    label: '生产厂商',
    field: 'productor',
    component: 'Input',
  },
  {
    label: '版本',
    field: 'version',
    component: 'Input',
  },
  {
    label: '开始运行时间',
    field: 'beginruntime',
    component: 'Input',
  },
  {
    label: '监控中心地址',
    field: 'schost',
    component: 'Input',
  },
  {
    label: '监控中心端口',
    field: 'scport',
    component: 'Input',
  },
];
